﻿using AutoMapper;
using Gengens.Disk.Entity.model.user;
using Gengens.Disk.WebApi.dto.input.user;

namespace Gengens.Disk.WebApi.profiles
{
    public class UserProfile : Profile
    {
        public UserProfile()
        {
            CreateMap<UserForRegisterDto, UserInfo>().ForMember(
                desc => desc.Id,
                opt => opt.MapFrom(src => Guid.NewGuid())
                );
        }
    }
}
